package com.github.icloudpay.crm.core.rest;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.icloudpay.crm.core.biz.OrderBountyBiz;
import com.github.icloudpay.crm.core.entity.OrderBounty;
import com.github.wxiaoqi.security.common.rest.BaseController;



/**
 * 悬赏订单
 * @author Administrator
 *
 */
@Controller
@RequestMapping("admin/orderBounty")
public class OrderBountyController extends BaseController<OrderBountyBiz,OrderBounty> {

	private static final Logger logger = LoggerFactory.getLogger(OrderBountyController.class);
	@Autowired
	private OrderBountyBiz orderBountyBiz;
	
	/**
	 * 查询悬赏订单
	 * @param param
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/orderBountyList", method = RequestMethod.POST)
	public Map<String, Object> queryOrderList(@RequestBody Map<String, Object> param) {
		logger.info("查询悬赏订单，请求参数。。。{}"+param);
		Map<String, Object> res = orderBountyBiz.queryOrderList(param);
		logger.info("查询悬赏订单，响应参数。。。{}"+res);
		return res;
	}
	
	/**
	 * 悬赏订单导出
	 * @param param
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/exportBountyList", method = RequestMethod.POST)
	public Map<String, Object> exportBountyList(@RequestBody Map<String, Object> param) {
		logger.info("导出悬赏订单，请求参数。。。{}"+param);
		Map<String, Object> res = orderBountyBiz.queryOrderList(param);
		
		
		
		
		
		logger.info("导出悬赏订单。。。{}");
		return res;
	}
}